﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tariff.aspx.cs" Inherits="WMS6.Web.Billing.Tariff" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Tariff</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }
        //弹出窗口选择费率代码
        function selectRate() {
            var rtnValue = popModalWindow('../Billing/RateQuery.aspx?action=txtTypeCode', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtTypeCode").focus();
                document.getElementById("txtTypeCode").value = rtnValue;
            }
        }
        function selectcalendarGroup() {
            var rtnValue = popModalWindow('../Billing/CalendarGroupQuery.aspx?action=txtTypeCode', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtTypeCode").focus();
                document.getElementById("txtTypeCode").value = rtnValue;
            }
        }
        function confirmMsg(code) {
            if (code == "F9140_001") {
                if (confirm('<%=GetGlobalMsgResource("F9140_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
    </script>

</head>
<body>
    <form id="F9041" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="价目表" 
                            meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False"
                            OnClick="btnGoBack_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>" Enabled="False"
                            AccessKey="n" onclick="btnNew_Click"   />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" Enabled="False"
                            AccessKey="s" OnClick="btnSave_Click" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>" Enabled="False"
                            AccessKey="d" OnClientClick="javascript:if(confirmMsg('F9140_001')) return true; else return false;"
                            OnClick="btnDelete_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>" Enabled="False"
                            AccessKey="c" OnClick="btnCopy_Click" 
                            />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,1)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>                    
                </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblTariffID" runat="server" CssClass="label" Text="价目编号" 
                                        meta:resourcekey="lblTariffID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                <asp:Label ID="lblTariffType" runat="server" CssClass="label" Text="价目类型" 
                                        meta:resourcekey="lblTariffType"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                  <asp:Label ID="lblTypeCode" runat="server" CssClass="label" Text="类型代码" 
                                        meta:resourcekey="lblTypeCode"></asp:Label><span
                                        class="must_input">*
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtTariffID" runat="server" CssClass="textbox" MaxLength="20" 
                                        meta:resourcekey="txtTariffID"></asp:TextBox>
                                </td>
                                <td>
                               <asp:DropDownList ID="ddlTariffType" CssClass="mediumselectbox" runat="server" AutoPostBack="True" 
                                        ontextchanged="ddlTariffType_TextChanged" 
                                        meta:resourcekey="ddlTariffType">
                               </asp:DropDownList>
                                </td>
                                <td>
                                  <asp:TextBox ID="txtTypeCode" runat="server" CssClass="textbox" MaxLength="20" 
                                        meta:resourcekey="txtTypeCode"></asp:TextBox><img src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item" class="img" onclick="selectRate();"/>                                  
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>                           
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblDesrc" runat="server" CssClass="label" Text="描述" 
                                        meta:resourcekey="lblDesrc"></asp:Label>
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan=2>
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" 
                                        meta:resourcekey="txtDescr"></asp:TextBox>
                                </td>
                                
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="是否启用" 
                                        Checked="True" meta:resourcekey="chkIsActive" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>                            
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                 <input type="hidden" id="hdnFrom" runat="server" >                  
                     <input id="hdnTariffID" runat="server" type="hidden"></input>
                     </input>
                </input>
            </ContentTemplate>           
        </asp:UpdatePanel>
    </div>   
    <input type="hidden" id="hdnFlag" runat="server" />
    </form>
</body>
</html>

